package com.aiyige.model;

import java.io.Serializable;

/**
 * Created by xiachao on 2018/4/10.
 */

public class CustomerRequestModel implements Serializable{
    private String id;
    private String sellerId;
    private String buyerId;
    private String name;
    private String avatar;
    private String type;
    private String sex;
    private String mobile;
    private String remark;
    private String followupTime;
    private String nextFollowupTime;
    private String fromChannel;
    private String latestClassTime;
    private String totalConsum;
    private String dealCount;
    private String createTime;
    private String updateTime;
    public CustomerRequestModel() {

    }

    public CustomerRequestModel(Builder builder) {
        setId(builder.id);
        setSellerId(builder.sellerId);
        setBuyerId(builder.buyerId);
        setName(builder.name);
        setAvatar(builder.avatar);
        setType(builder.type);
        setSex(builder.sex);
        setMobile(builder.mobile);
        setRemark(builder.remark);
        setFollowupTime(builder.followupTime);
        setNextFollowupTime(builder.nextFollowupTime);
        setFromChannel(builder.fromChannel);
        setLatestClassTime(builder.latestClassTime);
        setTotalConsum(builder.totalConsum);
        setDealCount(builder.dealCount);
        setCreateTime(builder.createTime);
        setUpdateTime(builder.updateTime);
    }

    public static Builder newBuilder() {
        return new Builder();
    }

    public String getId() {
        return id == null ? "" : id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getSellerId() {
        return sellerId == null ? "" : sellerId;
    }

    public void setSellerId(String sellerId) {
        this.sellerId = sellerId;
    }

    public String getBuyerId() {
        return buyerId == null ? "" : buyerId;
    }

    public void setBuyerId(String buyerId) {
        this.buyerId = buyerId;
    }

    public String getName() {
        return name == null ? "" : name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAvatar() {
        return avatar == null ? "" : avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getType() {
        return type == null ? "" : type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getSex() {
        return sex == null ? "" : sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getMobile() {
        return mobile == null ? "" : mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getRemark() {
        return remark == null ? "" : remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getFollowupTime() {
        return followupTime == null ? "0" : followupTime;
    }

    public void setFollowupTime(String followupTime) {
        this.followupTime = followupTime;
    }

    public String getNextFollowupTime() {
        return nextFollowupTime == null ? "0" : nextFollowupTime;
    }

    public void setNextFollowupTime(String nextFollowupTime) {
        this.nextFollowupTime = nextFollowupTime;
    }

    public String getFromChannel() {
        return fromChannel == null ? "" : fromChannel;
    }

    public void setFromChannel(String fromChannel) {
        this.fromChannel = fromChannel;
    }

    public String getLatestClassTime() {
        return latestClassTime == null ? "0" : latestClassTime;
    }

    public void setLatestClassTime(String latestClassTime) {
        this.latestClassTime = latestClassTime;
    }

    public String getTotalConsum() {
        return totalConsum == null ? "0" : totalConsum;
    }

    public void setTotalConsum(String totalConsum) {
        this.totalConsum = totalConsum;
    }

    public String getDealCount() {
        return dealCount == null ? "0" : dealCount;
    }

    public void setDealCount(String dealCount) {
        this.dealCount = dealCount;
    }

    public String getCreateTime() {
        return createTime == null ? "0" : createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateTime() {
        return updateTime == null ? "0" : updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public static final class Builder {
        private String id;
        private String sellerId;
        private String buyerId;
        private String name;
        private String avatar;
        private String type;
        private String sex;
        private String mobile;
        private String remark;
        private String followupTime;
        private String nextFollowupTime;
        private String fromChannel;
        private String latestClassTime;
        private String totalConsum;
        private String dealCount;
        private String createTime;
        private String updateTime;

        private Builder() {
        }

        public Builder id(String id) {
            this.id = id;
            return this;
        }

        public Builder sellerId(String sellerId) {
            this.sellerId = sellerId;
            return this;
        }

        public Builder buyerId(String buyerId) {
            this.buyerId = buyerId;
            return this;
        }

        public Builder name(String name) {
            this.name = name;
            return this;
        }

        public Builder avatar(String avatar) {
            this.avatar = avatar;
            return this;
        }

        public Builder type(String type) {
            this.type = type;
            return this;
        }

        public Builder sex(String sex) {
            this.sex = sex;
            return this;
        }

        public Builder mobile(String mobile) {
            this.mobile = mobile;
            return this;
        }

        public Builder remark(String remark) {
            this.remark = remark;
            return this;
        }

        public Builder followupTime(String followupTime) {
            this.followupTime = followupTime;
            return this;
        }

        public Builder nextFollowupTime(String nextFollowupTime) {
            this.nextFollowupTime = nextFollowupTime;
            return this;
        }

        public Builder fromChannel(String fromChannel) {
            this.fromChannel = fromChannel;
            return this;
        }

        public Builder latestClassTime(String latestClassTime) {
            this.latestClassTime = latestClassTime;
            return this;
        }

        public Builder totalConsum(String totalConsum) {
            this.totalConsum = totalConsum;
            return this;
        }

        public Builder dealCount(String dealCount) {
            this.dealCount = dealCount;
            return this;
        }

        public Builder createTime(String createTime) {
            this.createTime = createTime;
            return this;
        }

        public Builder updateTime(String updateTime) {
            this.updateTime = updateTime;
            return this;
        }

        public CustomerRequestModel build() {
            return new CustomerRequestModel(this);
        }
    }
}
